package com.dongdongshop.service;

import com.dongdongshop.pojo.PageResult;
import com.dongdongshop.pojo.TbSpecification;
import com.dongdongshop.pojo.TbSpecificationOption;
import com.dongdongshop.vo.TbSpecificationOptionVO;

import java.util.List;

public interface TbSpecificationOptionSerive {

    //查询规格全部数据(要求分页)
    PageResult<TbSpecification> TbSpecificationshowall(Integer pageNum, Integer pageSize, String specName);

    //添加规格数据
    void addTbSpecification(TbSpecification specName, List<TbSpecificationOption> tbSpecificationOptions);

    //规格数据回显
    TbSpecificationOptionVO showecho(Long id);

    //修改规格数据
    void updateTbSpecification(TbSpecification specName, List<TbSpecificationOption> tbSpecificationOptions);

    //删除单个数据
    void deleteTbSpecification(Long id);

    //删除多个数据
    void deleteallTbSpecification(List<Long> ids);

    //查询规格全部数据
    List<TbSpecification> TbSpecificationshow();
}
